using System;
using System.Collections.Generic;
using System.Text;
using Cafe.Class;
using System.Data;

namespace Cafe.Controller
{
    class dmBanController
    {
        private Class.ClsConnection ketnoi = new ClsConnection();
        
        public DataSet getAllData() {
            DataSet ds = ketnoi.GetData("select * from dm_ban");
            return ds;
        }

        public void updateBan(DataTable table) {
            ketnoi.Update(table,"select * from dm_ban","dm_ban");
        }

    }
}
